package com.minosiants.confluence.blog.plugin.tweet2it;

import java.lang.reflect.Type;
import java.util.Collection;
import java.util.Locale;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.minosiants.confluence.blog.plugin.tweet2it.ITwitterClient;
import com.minosiants.confluence.blog.plugin.tweet2it.TwitterStatus;
import com.minosiants.confluence.blog.plugin.tweet2it.TwitterUser;

public class DummyTwitterClient implements ITwitterClient {
	private Gson gson=createGson();
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.twitter.ITwitterClient#getFriendsTimeLine()
	 */
	public Collection<TwitterStatus> getFriendsTimeLine(Long lastStatusId) {
		String response="[{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 07:31:50 +0000 2009\",\"user\":{\"created_at\":\"Tue Dec 19 08:38:07 +0000 2006\",\"description\":\"I work at Forrester Research, however these opinions are mine. How I use Twitter http:\\/\\/tinyurl.com\\/24lv65\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/85888017\\/jko_09_normal.jpg\",\"notifications\":false,\"statuses_count\":15289,\"profile_text_color\":\"663B12\",\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme2\\/bg.gif\",\"screen_name\":\"jowyang\",\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"1F98C7\",\"followers_count\":43314,\"url\":\"http:\\/\\/web-strategist.com\\/blog\",\"name\":\"Jeremiah Owyang\",\"profile_background_tile\":false,\"protected\":false,\"friends_count\":7257,\"profile_background_color\":\"C6E2EE\",\"following\":false,\"favourites_count\":235,\"profile_sidebar_fill_color\":\"DAECF4\",\"location\":\"Silicon Valley\",\"id\":79543,\"profile_sidebar_border_color\":\"C6E2EE\"},\"truncated\":false,\"text\":\"Headed to Versailles, enjoyed the Left Bank yesterday, the catacombs are morbid yet fascinating.\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891602765,\"source\":\"web\"},{\"favorited\":false,\"user\":{\"profile_sidebar_fill_color\":\"f7fdfd\",\"description\":\"The hottest Twitter news, Twitter tips and Twitter help. Plus, the best social media links around!\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"bbdbf2\",\"created_at\":\"Mon Mar 12 01:28:01 +0000 2007\",\"url\":\"http:\\/\\/mashable.com\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/58439629\\/petepassport_normal.PNG\",\"name\":\"Pete Cashmore\",\"notifications\":null,\"statuses_count\":15882,\"profile_text_color\":\"414050\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/5105174\\/mashabletwitterbckgmar09.png\",\"screen_name\":\"mashable\",\"following\":null,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"479cdc\",\"followers_count\":683077,\"profile_background_tile\":false,\"friends_count\":1896,\"profile_background_color\":\"FFFFFF\",\"location\":\"Scotland \\/ SF\",\"id\":972651,\"favourites_count\":0},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 07:28:05 +0000 2009\",\"text\":\"For your weekend: \\\"6 Twitter Games To Make Tweeting Fun\\\" - http:\\/\\/bit.ly\\/F9NTv\",\"truncated\":false,\"id\":1891585720,\"in_reply_to_user_id\":null,\"source\":\"web\"},{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 07:27:27 +0000 2009\",\"user\":{\"created_at\":\"Tue Dec 19 08:38:07 +0000 2006\",\"description\":\"I work at Forrester Research, however these opinions are mine. How I use Twitter http:\\/\\/tinyurl.com\\/24lv65\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/85888017\\/jko_09_normal.jpg\",\"notifications\":0,\"statuses_count\":15288,\"profile_text_color\":\"663B12\",\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme2\\/bg.gif\",\"screen_name\":\"jowyang\",\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"1F98C7\",\"followers_count\":43315,\"url\":\"http:\\/\\/web-strategist.com\\/blog\",\"name\":\"Jeremiah Owyang\",\"profile_background_tile\":false,\"protected\":false,\"friends_count\":7257,\"profile_background_color\":\"C6E2EE\",\"following\":0,\"favourites_count\":235,\"profile_sidebar_fill_color\":\"DAECF4\",\"location\":\"Silicon Valley\",\"id\":79543,\"profile_sidebar_border_color\":\"C6E2EE\"},\"truncated\":false,\"text\":\"Speak Czech? Thanks to @hrouda it's now in Czech http:\\/\\/snipurl.com\\/ilt9e curious no Asian translations yet.\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891582997,\"source\":\"web\"},{\"created_at\":\"Sat May 23 07:25:59 +0000 2009\",\"favorited\":false,\"user\":{\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"profile_sidebar_fill_color\":\"95E8EC\",\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"profile_sidebar_border_color\":\"5ED4DC\",\"screen_name\":\"missrogue\",\"url\":\"http:\\/\\/www.horsepigcow.com\",\"name\":\"Tara missrogue Hunt\",\"notifications\":null,\"statuses_count\":18400,\"profile_text_color\":\"3C3940\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"following\":null,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26761,\"profile_background_tile\":false,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"location\":\"San Francisco, CA\",\"id\":1192,\"favourites_count\":1610},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"text\":\"Fuck hope springing eternal. Just fuck. Whatev. {drunk tweet}\",\"truncated\":false,\"id\":1891576396,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/www.atebits.com\\/\\\">Tweetie<\\/a>\"},{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 07:18:22 +0000 2009\",\"user\":{\"created_at\":\"Fri Oct 05 11:51:07 +0000 2007\",\"description\":\"journalist, analyst, entreperneur, 25 y\\/o, married, russian\",\"utc_offset\":10800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/122922389\\/moniac_normal.gif\",\"notifications\":false,\"statuses_count\":805,\"profile_text_color\":\"333333\",\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/7561971\\/moniac.gif\",\"screen_name\":\"kbolgarov\",\"time_zone\":\"Moscow\",\"profile_link_color\":\"0084B4\",\"followers_count\":223,\"url\":\"http:\\/\\/friendfeed.com\\/kbolgarov\",\"name\":\"Kirill Bolgarov\",\"profile_background_tile\":true,\"protected\":false,\"friends_count\":200,\"profile_background_color\":\"9AE4E8\",\"following\":false,\"favourites_count\":14,\"profile_sidebar_fill_color\":\"DDFFCC\",\"location\":\"Saint-Petersburg, Russia\",\"id\":9262432,\"profile_sidebar_border_color\":\"BDDCAD\"},\"truncated\":false,\"text\":\"\\u041d\\u043e\\u043a\\u0438\\u0430, \\u043a\\u043e\\u043d\\u0435\\u0447\\u043d\\u043e, \\u043d\\u0435\\u043d\\u0430\\u043c\\u043d\\u043e\\u0433\\u043e \\u043b\\u0443\\u0447\\u0448\\u0435, \\u0430 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0438 \\u0445\\u0443\\u0436\\u0435 re: http:\\/\\/ff.im\\/39Bqi\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891542085,\"source\":\"<a href=\\\"http:\\/\\/friendfeed.com\\/\\\">FriendFeed<\\/a>\"},{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 07:12:29 +0000 2009\",\"user\":{\"created_at\":\"Fri Jul 27 17:46:03 +0000 2007\",\"description\":\"CHAOS!!!!!\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/210509643\\/duanechaos-love_normal.jpg\",\"notifications\":null,\"statuses_count\":546,\"profile_text_color\":\"666666\",\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/12758390\\/duanechaos.jpg\",\"screen_name\":\"duanechaos\",\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"2FC2EF\",\"followers_count\":382,\"url\":\"http:\\/\\/technoracle.blogspot.com\",\"name\":\"Duane Nickull\",\"profile_background_tile\":true,\"protected\":false,\"friends_count\":117,\"profile_background_color\":\"1A1B1F\",\"following\":null,\"favourites_count\":2,\"profile_sidebar_fill_color\":\"252429\",\"location\":\"Vancouver\",\"id\":7766562,\"profile_sidebar_border_color\":\"181A1E\"},\"truncated\":false,\"text\":\"22nd Century now agrees to let anyone burn the music for personal use (corporate use must pay). http:\\/\\/www.myspace.com\\/22ndcentury\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891515071,\"source\":\"web\"},{\"favorited\":false,\"user\":{\"description\":\"CHAOS!!!!!\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"181A1E\",\"created_at\":\"Fri Jul 27 17:46:03 +0000 2007\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/210509643\\/duanechaos-love_normal.jpg\",\"notifications\":false,\"statuses_count\":545,\"profile_text_color\":\"666666\",\"url\":\"http:\\/\\/technoracle.blogspot.com\",\"name\":\"Duane Nickull\",\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/12758390\\/duanechaos.jpg\",\"protected\":false,\"screen_name\":\"duanechaos\",\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"2FC2EF\",\"followers_count\":382,\"profile_background_tile\":true,\"friends_count\":117,\"profile_background_color\":\"1A1B1F\",\"following\":0,\"favourites_count\":2,\"location\":\"Vancouver\",\"id\":7766562,\"profile_sidebar_fill_color\":\"252429\"},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 07:11:23 +0000 2009\",\"text\":\"Got home from Band practice and heading out to Elwoods for some brewskis!\",\"truncated\":false,\"in_reply_to_user_id\":null,\"id\":1891510006,\"source\":\"web\"},{\"favorited\":false,\"user\":{\"profile_sidebar_fill_color\":\"F8F8EB\",\"description\":\"http:\\/\\/microformats.org\\/wiki\\/\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"E0E7B8\",\"created_at\":\"Sun Jan 14 18:33:30 +0000 2007\",\"url\":\"http:\\/\\/microformats.org\\/\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/18913702\\/microformats-logo_normal.png\",\"name\":\"microformats\",\"notifications\":false,\"statuses_count\":179,\"profile_text_color\":\"333333\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/3496043\\/bg.png\",\"screen_name\":\"microformats\",\"following\":0,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"3080CB\",\"followers_count\":8118,\"profile_background_tile\":true,\"friends_count\":91,\"profile_background_color\":\"ffffff\",\"location\":\"in ur HTML enhancin ur tags\",\"id\":633273,\"favourites_count\":1659},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 06:51:17 +0000 2009\",\"text\":\"validator Optimus v0.8 released by @dmitrybaranovsk, supports value-class-pattern http:\\/\\/tr.im\\/valueclass value-title! more info: @optimusmf\",\"truncated\":false,\"id\":1891411077,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/orangatame.com\\/products\\/twitterberry\\/\\\">TwitterBerry<\\/a>\"},{\"created_at\":\"Sat May 23 06:38:39 +0000 2009\",\"favorited\":false,\"user\":{\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"profile_sidebar_fill_color\":\"95E8EC\",\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"profile_sidebar_border_color\":\"5ED4DC\",\"screen_name\":\"missrogue\",\"url\":\"http:\\/\\/www.horsepigcow.com\",\"name\":\"Tara missrogue Hunt\",\"notifications\":false,\"statuses_count\":18399,\"profile_text_color\":\"3C3940\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"following\":0,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26758,\"profile_background_tile\":false,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"location\":\"San Francisco, CA\",\"id\":1192,\"favourites_count\":1610},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"text\":\"So awesome that so many ppl get so much pleasure from karaoke.\",\"truncated\":false,\"id\":1891349014,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/www.atebits.com\\/\\\">Tweetie<\\/a>\"},{\"created_at\":\"Sat May 23 06:31:08 +0000 2009\",\"favorited\":false,\"user\":{\"created_at\":\"Fri Nov 17 21:54:30 +0000 2006\",\"profile_sidebar_fill_color\":\"e0ff92\",\"description\":\"British RDF free software\\/open source hacker comedian software architect.\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/82013938\\/dajobe-southpark-first_normal_normal.png\",\"profile_sidebar_border_color\":\"87bc44\",\"screen_name\":\"dajobe\",\"url\":\"http:\\/\\/www.dajobe.org\\/\",\"name\":\"Dave Beckett\",\"notifications\":false,\"statuses_count\":2283,\"profile_text_color\":\"000000\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme1\\/bg.gif\",\"following\":false,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0000ff\",\"followers_count\":440,\"profile_background_tile\":false,\"friends_count\":96,\"profile_background_color\":\"9ae4e8\",\"location\":\"Silicon Valley\",\"id\":12898,\"favourites_count\":37},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"text\":\"discovering more flickr photo search API params I hadn't noticed: geo_context=indoors or outdoors.  how do they do that?\",\"truncated\":false,\"id\":1891311752,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/www.ping.fm\\/\\\">Ping.fm<\\/a>\"},{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 06:30:28 +0000 2009\",\"user\":{\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"profile_text_color\":\"3C3940\",\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"screen_name\":\"missrogue\",\"statuses_count\":18398,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26760,\"url\":\"http:\\/\\/www.horsepigcow.com\",\"name\":\"Tara missrogue Hunt\",\"profile_background_tile\":false,\"protected\":false,\"notifications\":false,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"following\":false,\"favourites_count\":1610,\"profile_sidebar_fill_color\":\"95E8EC\",\"location\":\"San Francisco, CA\",\"id\":1192,\"profile_sidebar_border_color\":\"5ED4DC\"},\"truncated\":false,\"text\":\"Hello peacocks!\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891308334,\"source\":\"<a href=\\\"http:\\/\\/www.atebits.com\\/\\\">Tweetie<\\/a>\"},{\"favorited\":false,\"user\":{\"profile_sidebar_fill_color\":\"fff\",\"description\":\"UX Designer, Web Trend Cartographer\",\"utc_offset\":32400,\"favourites_count\":11,\"profile_sidebar_border_color\":\"fff\",\"notifications\":null,\"statuses_count\":1730,\"created_at\":\"Sat Mar 24 06:29:18 +0000 2007\",\"followers_count\":2265,\"url\":\"http:\\/\\/informationarchitects.jp\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/180766221\\/iA_logo_construction_ORN1-1_normal.jpg\",\"name\":\"Oliver Reichenstein\",\"profile_text_color\":\"333333\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/9991123\\/Fibonacci_spiral_35.gif\",\"friends_count\":101,\"screen_name\":\"iA\",\"following\":null,\"time_zone\":\"Tokyo\",\"profile_link_color\":\"990000\",\"profile_background_tile\":false,\"profile_background_color\":\"ffffff\",\"location\":\"Tokyo\",\"id\":2087371},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 06:30:14 +0000 2009\",\"text\":\"Rubik's cube font generator http:\\/\\/bit.ly\\/184nmm\",\"truncated\":false,\"id\":1891306960,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/83degrees.com\\/to\\/powertwitter\\\">Power Twitter<\\/a>\"},{\"favorited\":false,\"user\":{\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"5ED4DC\",\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"profile_text_color\":\"3C3940\",\"url\":\"http:\\/\\/www.horsepigcow.com\",\"name\":\"Tara missrogue Hunt\",\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"protected\":false,\"screen_name\":\"missrogue\",\"statuses_count\":18397,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26760,\"profile_background_tile\":false,\"notifications\":false,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"following\":0,\"location\":\"San Francisco, CA\",\"id\":1192,\"favourites_count\":1610,\"profile_sidebar_fill_color\":\"95E8EC\"},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 06:29:00 +0000 2009\",\"text\":\"Fgfi fbjthesvybgg. Rfjhjybhgsh. Ka-ra-oke!\",\"truncated\":false,\"in_reply_to_user_id\":null,\"id\":1891300463,\"source\":\"<a href=\\\"http:\\/\\/www.atebits.com\\/\\\">Tweetie<\\/a>\"},{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 06:28:45 +0000 2009\",\"user\":{\"created_at\":\"Sat Mar 24 06:29:18 +0000 2007\",\"description\":\"UX Designer, Web Trend Cartographer\",\"utc_offset\":32400,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/180766221\\/iA_logo_construction_ORN1-1_normal.jpg\",\"notifications\":null,\"statuses_count\":1729,\"profile_text_color\":\"333333\",\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/9991123\\/Fibonacci_spiral_35.gif\",\"screen_name\":\"iA\",\"time_zone\":\"Tokyo\",\"profile_link_color\":\"990000\",\"followers_count\":2264,\"url\":\"http:\\/\\/informationarchitects.jp\",\"name\":\"Oliver Reichenstein\",\"profile_background_tile\":false,\"protected\":false,\"friends_count\":101,\"profile_background_color\":\"ffffff\",\"following\":null,\"favourites_count\":11,\"profile_sidebar_fill_color\":\"fff\",\"location\":\"Tokyo\",\"id\":2087371,\"profile_sidebar_border_color\":\"fff\"},\"truncated\":false,\"text\":\"Big Brand 1080px Design http:\\/\\/bit.ly\\/ToO1Q\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891299235,\"source\":\"<a href=\\\"http:\\/\\/83degrees.com\\/to\\/powertwitter\\\">Power Twitter<\\/a>\"},{\"created_at\":\"Sat May 23 06:21:03 +0000 2009\",\"favorited\":false,\"user\":{\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"profile_sidebar_fill_color\":\"95E8EC\",\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"profile_sidebar_border_color\":\"5ED4DC\",\"screen_name\":\"missrogue\",\"url\":\"http:\\/\\/www.horsepigcow.com\",\"name\":\"Tara missrogue Hunt\",\"notifications\":null,\"statuses_count\":18396,\"profile_text_color\":\"3C3940\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"following\":null,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26758,\"profile_background_tile\":false,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"location\":\"San Francisco, CA\",\"id\":1192,\"favourites_count\":1610},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"text\":\"Warning: all drunk tweets from this point in the night forward.\",\"truncated\":false,\"id\":1891260442,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/www.atebits.com\\/\\\">Tweetie<\\/a>\"},{\"favorited\":false,\"user\":{\"favourites_count\":1610,\"profile_sidebar_fill_color\":\"95E8EC\",\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"5ED4DC\",\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"url\":\"http:\\/\\/www.horsepigcow.com\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"name\":\"Tara missrogue Hunt\",\"profile_text_color\":\"3C3940\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"screen_name\":\"missrogue\",\"following\":null,\"statuses_count\":18395,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26756,\"profile_background_tile\":false,\"notifications\":null,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"location\":\"San Francisco, CA\",\"id\":1192},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 06:14:53 +0000 2009\",\"text\":\"kar-a-oke!!!!! (at The Boiler Room with @jcroft @dkr)\",\"truncated\":false,\"id\":1891228405,\"in_reply_to_user_id\":null,\"source\":\"<a href=\\\"http:\\/\\/playfoursquare.com\\\">foursquare<\\/a>\"},{\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 05:56:06 +0000 2009\",\"user\":{\"created_at\":\"Sun Jul 16 06:56:52 +0000 2006\",\"description\":\"Author\\/The Whuffie Factor, Owner\\/Citizen Space\",\"utc_offset\":-28800,\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/114935863\\/tara_bccf_normal.jpg\",\"notifications\":null,\"statuses_count\":18394,\"profile_text_color\":\"3C3940\",\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme4\\/bg.gif\",\"screen_name\":\"missrogue\",\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0099B9\",\"followers_count\":26752,\"url\":\"http:\\/\\/www.horsepigcow.com\",\"name\":\"Tara missrogue Hunt\",\"profile_background_tile\":false,\"protected\":false,\"friends_count\":1444,\"profile_background_color\":\"0099B9\",\"following\":null,\"favourites_count\":1610,\"profile_sidebar_fill_color\":\"95E8EC\",\"location\":\"San Francisco, CA\",\"id\":1192,\"profile_sidebar_border_color\":\"5ED4DC\"},\"truncated\":false,\"text\":\"Onto ze Boiler Room for kar-a-oke!\",\"in_reply_to_user_id\":null,\"favorited\":false,\"id\":1891126567,\"source\":\"<a href=\\\"http:\\/\\/www.atebits.com\\/\\\">Tweetie<\\/a>\"},{\"favorited\":false,\"user\":{\"description\":\"Wired, Long Tail, Free, DIY Drones, BookTour\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"87bc44\",\"created_at\":\"Mon Nov 24 16:57:51 +0000 2008\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/69196494\\/18565_normal.png\",\"notifications\":false,\"statuses_count\":320,\"profile_text_color\":\"000000\",\"url\":\"http:\\/\\/www.longtail.com\\/\",\"name\":\"Chris Anderson\",\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme1\\/bg.gif\",\"protected\":false,\"screen_name\":\"chr1sa\",\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0000ff\",\"followers_count\":5845,\"profile_background_tile\":false,\"friends_count\":76,\"profile_background_color\":\"9ae4e8\",\"following\":0,\"favourites_count\":0,\"location\":\"Berkeley\",\"id\":17595439,\"profile_sidebar_fill_color\":\"e0ff92\"},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 05:50:34 +0000 2009\",\"text\":\"Kids' review of Lego Mindstorms NXT 2.0: basic tech unchanged, but the shooterbot kit is way cooler than anything in 1.0. Balls everywhere!\",\"truncated\":false,\"in_reply_to_user_id\":null,\"id\":1891096805,\"source\":\"web\"},{\"favorited\":false,\"user\":{\"favourites_count\":0,\"profile_sidebar_fill_color\":\"e0ff92\",\"description\":\"Wired, Long Tail, Free, DIY Drones, BookTour\",\"utc_offset\":-28800,\"profile_sidebar_border_color\":\"87bc44\",\"created_at\":\"Mon Nov 24 16:57:51 +0000 2008\",\"url\":\"http:\\/\\/www.longtail.com\\/\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/69196494\\/18565_normal.png\",\"name\":\"Chris Anderson\",\"profile_text_color\":\"000000\",\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme1\\/bg.gif\",\"screen_name\":\"chr1sa\",\"following\":null,\"statuses_count\":319,\"time_zone\":\"Pacific Time (US & Canada)\",\"profile_link_color\":\"0000ff\",\"followers_count\":5845,\"profile_background_tile\":false,\"notifications\":null,\"friends_count\":76,\"profile_background_color\":\"9ae4e8\",\"location\":\"Berkeley\",\"id\":17595439},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 05:47:03 +0000 2009\",\"text\":\"Just programmed 200 Blimpduino board. Felt like a Chinese factory worker. Only one board blew up in my hand, with impressive sparks.\",\"truncated\":false,\"id\":1891077496,\"in_reply_to_user_id\":null,\"source\":\"web\"},{\"favorited\":false,\"user\":{\"description\":\"Work on the Twitter Platform. Also passionate about technology, running, markets, users, and opportunities.\",\"utc_offset\":-18000,\"profile_sidebar_border_color\":\"87bc44\",\"created_at\":\"Sun Mar 18 06:42:26 +0000 2007\",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/59648642\\/avatar_normal.png\",\"notifications\":false,\"statuses_count\":3714,\"profile_text_color\":\"000000\",\"url\":\"http:\\/\\/www.igudo.com\",\"name\":\"Doug Williams\",\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/2752608\\/twitter_bg_grass.jpg\",\"protected\":false,\"screen_name\":\"dougw\",\"time_zone\":\"Eastern Time (US & Canada)\",\"profile_link_color\":\"0000ff\",\"followers_count\":2790,\"profile_background_tile\":false,\"friends_count\":209,\"profile_background_color\":\"9ae4e8\",\"following\":false,\"favourites_count\":2,\"location\":\"San Francisco, CA\",\"id\":1401881,\"profile_sidebar_fill_color\":\"e0ff92\"},\"in_reply_to_screen_name\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sat May 23 05:41:02 +0000 2009\",\"text\":\"http:\\/\\/twitpic.com\\/5r13c - And @jessverr and I are sitting on @sacca's couch... Without @sacca.\",\"truncated\":false,\"in_reply_to_user_id\":null,\"id\":1891042949,\"source\":\"<a href=\\\"http:\\/\\/twitpic.com\\/\\\">TwitPic<\\/a>\"}]";
	    Type collectionType = new TypeToken<Collection<TwitterStatus>>(){}.getType();
	   return gson.fromJson(response, collectionType);	   
	}
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.twitter.ITwitterClient#getUserTimeline()
	 */
	public Collection<TwitterStatus> getUserTimeline(Long lastStatusId){
		String response="";
		Type collectionType = new TypeToken<Collection<TwitterStatus>>(){}.getType();
		return gson.fromJson(response, collectionType);
	}	
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.twitter.ITwitterClient#getPublicTimeline()
	 */
	public Collection<TwitterStatus> getPublicTimeline(Long lastStatusId){
		String response="";
		Type collectionType = new TypeToken<Collection<TwitterStatus>>(){}.getType();
		return gson.fromJson(response, collectionType);
	}			
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.twitter.ITwitterClient#getFavorites()
	 */
	public Collection<TwitterStatus> getFavorites(Long lastStatusId){
		String response="";
		Type collectionType = new TypeToken<Collection<TwitterStatus>>(){}.getType();
		return gson.fromJson(response, collectionType);
	}
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.twitter.ITwitterClient#getMentions()
	 */
	public Collection<TwitterStatus> getMentions(Long lastStatusId){
		String response="";
		Type collectionType = new TypeToken<Collection<TwitterStatus>>(){}.getType();
		return gson.fromJson(response, collectionType);
	}	
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.twitter.ITwitterClient#getTwitterUser(java.lang.String)
	 */
	public TwitterUser getTwitterUser(String screanName){
		String response="{\"profile_sidebar_border_color\":\"AD8A75\",\"followers_count\":43,\"description\":\"I'm an enterprise software engineer. Interesting in social networks and semantic web\",\"utc_offset\":10800,\"friends_count\":96,\"created_at\":\"Mon Mar 31 09:24:27 +0000 2008\",\"profile_text_color\":\"333333\",\"profile_background_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_background_images\\/3738569\\/twitter-bg.jpg\",\"url\":\"http:\\/\\/minosiants.com \",\"profile_image_url\":\"http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/69056001\\/n775400091_6254_normal.jpg\",\"name\":\"Kaspar Minosiants\",\"time_zone\":\"Moscow\",\"profile_link_color\":\"A5B8A4\",\"protected\":false,\"status\":{\"favorited\":false,\"in_reply_to_screen_name\":\"ruhigerherr\",\"created_at\":\"Thu May 21 08:53:16 +0000 2009\",\"in_reply_to_status_id\":null,\"text\":\"@ruhigerherr Hello Pavel ;)\",\"truncated\":false,\"in_reply_to_user_id\":15987485,\"id\":1869242875,\"source\":\"web\"},\"profile_background_tile\":false,\"screen_name\":\"kasparminosiant\",\"following\":false,\"profile_background_color\":\"EDDFC1\",\"favourites_count\":6,\"notifications\":false,\"statuses_count\":138,\"profile_sidebar_fill_color\":\"DE8A56\",\"location\":\"Russia\",\"id\":14264704}";		
		return gson.fromJson(response,TwitterUser.class);
	}
	private Gson createGson() {
	    GsonBuilder gsonBuilder=new GsonBuilder();
	    Locale.setDefault(Locale.US);
	    gsonBuilder.setDateFormat("EEE MMM dd kk:mm:ss Z yyyy");
	    return gsonBuilder.create();	
	}
	@Override
	public TwitterStatus updateStatus(String status) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public TwitterStatus updateStatus(String status, String inReplyToStatusId) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public boolean deleteStatus(Long statusId) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean addToFavorites(Long id) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean removeFromFavorites(Long id) {
		// TODO Auto-generated method stub
		return false;
	}
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.tweet2it.ITwitterClient#deleteDirectMessage(java.lang.String)
	 */
	@Override
	public boolean deleteDirectMessage(String id) {
		// TODO Auto-generated method stub
		return false;
	}
	/* (non-Javadoc)
	 * @see com.minosiants.confluence.blog.plugin.tweet2it.ITwitterClient#getDirect(java.lang.Long)
	 */
	@Override
	public Collection<TwitterDirectMessage> getDirect(Long page) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
